<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="order/include :: header"></head>

<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<div class="form-horizontal m-t">
							<table class="table table-bordered table-condensed">
								<thead>
									<tr>
										<th>商户订单号</th>
										<th>订单来源</th>
										<th>结算方式</th>
										<th>门店实际入账金额</th>
										<th>交易手续费</th>
										<th>支出佣金总额</th>
										<th>相关联的佣金id</th>
<!--										<th>分账信息</th>-->
										<th>分账订单号</th>

<!--										<th>centre_id</th>-->
<!--										<th>门店id</th>-->
										<th>status</th>
										<th>购买人</th>
										<th>是否核销</th>
									</tr>
								</thead>
								<tbody>
								<tr th:each="item:${list}">
									<td th:text="${item.outTradeNo}"></td>
									<td th:text="${item.type} == '1'?'线上订单':'线下支付'"></td>
									<td th:text="${item.splitType} == '1'?'商户结算（余额）':'交易分账（易票联）'"></td>
									<td th:text="${item.money}"></td>
									<td th:text="${item.serviceCharge}+${item.yfzServiceCharge}"></td>
									<td th:text="${item.commissionTotal}"></td>
									<td th:text="${item.commission}"></td>
<!--									<td th:text="${item.splitResultInfoList}"></td>-->
									<td th:text="${item.transactionNo}"></td>

<!--									<td th:text="${item.centreId}"></td>-->
<!--									<td th:text="${item.teamId}"></td>-->
									<td th:text="${item.returnCode}"></td>
									<td th:text="${item.payMid}"></td>
									<td th:text="${item.verifyFlag} == '1'?'是':'否'"></td>
								</tr>
								</tbody>
							</table>
							<table>

							</table>
							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div th:include="order/include::footer"></div>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}

		function saveRemark() {
			$.ajax({
				url: "/order/manage" + "/update",
				type: "POST",
				data: {
					id: $('#id').val(),
					remark:$('#remark').val()
				},
				success: function (r) {
					parent.layer.msg(r.msg);
				}
			});
		}
	</script>
</body>
</html>
